<section class="content-header">
	<h1>Modify Company Form <small>Preview</small></h1>
	<ol class="breadcrumb">
		<li>
			<a href="#"><i class="fa fa-dashboard"></i> Home</a>
		</li>
		<li>
			<a href="#">Modify company form</a>
		</li>
		<li class="active">
			Modify new company
		</li>
	</ol>
</section>
<form role="form" action="<?php echo base_url(); ?>control-settings/edit-company/<?php echo $this->uri->segment(3);?>" method="post" enctype='multipart/form-data'>
	<section class="content">
		<div class="row">
			<!-- left column -->
			<div class="col-md-8">
				<!-- general form elements -->
				<div class="box box-primary">
					<div class="box-header">
						<h3 class="box-title">Create new company</h3>
					</div><!-- /.box-header -->
					<!-- form start -->

					<div class="box-body">
						<div class="form-group">
							<label for="company">Company <span class="required">*</span></label>
							<input type="company" class="form-control" id="company" name="company" placeholder="Company Name" value="<?php echo $company_info->row()->name; ?>" required="required">
							<?php echo form_error('company'); ?>
						</div>
						
						<div class="form-group">
							<label for="website">Website </label>
							<input type="website" class="form-control" id="website" name="website" placeholder="Website" value="<?php echo $company_info->row()->website; ?>">
							<?php //echo form_error('last_name'); ?>
						</div>
						<div class="form-group">
							<label for="company_desc">Company Description</label>
							<textarea class="form-control" rows="5" name="company_desc"><?php echo $company_info->row()->description; ?></textarea>
							<?php //echo form_error('company_desc'); ?>
						</div>
						
						<div class="form-group">
							<label for="address">Address</label>
							<textarea class="form-control" rows="5" name="address"><?php echo $company_info->row()->address; ?></textarea>
						</div>
						
						<div class="form-group">
							<label for="phone">Phone </label>
							<input type="text" class="form-control" id="phone" name="phone" placeholder="Phone" value="<?php echo $company_info->row()->phone; ?>">
							<?php //echo form_error('phone'); ?>
						</div>
						<div class="form-group">
							<label for="fax">Fax </label>
							<input type="fax" class="form-control" id="fax" name="fax" placeholder="Fax" value="<?php echo $company_info->row()->fax; ?>">
							<?php //echo form_error('last_name'); ?>
						</div>
						<div class="form-group">
							<label for="logo"><i class="fa fa-fw fa-lock"></i> Logo</label>
								<input id="logo" class="form-control" type="file"  name="userfile">
								<?php
									if(isset($errors)){
										echo $errors['error'];
									}
								?>
						</div>

					</div><!-- /.box-body -->

					<div class="box-footer">
						<button type="submit" class="btn btn-success">
							<span class="glyphicon glyphicon-saved"></span> Submit
						</button>
					</div>

				</div><!-- /.box -->

			</div><!--/.col (left) -->
			<!-- right column -->
			
		</div>
		<!-- /.row -->
	</section><!-- /.content -->
</form>